// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

// 引入user.js,注意，如果你要用fastmock不要引入线下mock
// import user from './js/user/user.js'

// 引入axios
import axios from "axios"
// 设置项目的公共请求地址
axios.defaults.baseURL = "https://www.fastmock.site/mock/30c8e77e5c56516ca1cb3437048d5efe/pethome"
// prototype：给JS对象横向扩展功能 Date.prototype.format = function(){}
// 给Vue对象扩展一个$http属性，此属性具有axios的功能
Vue.prototype.$http = axios;

/*引入elementUi*/
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

Vue.config.productionTip = false


/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
